﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T4Template.Model
{
    public class CreateCodeTemplateModel
    {
        // for code type
        public static readonly int CODE_TYPE_DOT_NET = 1;
        // for pattern type
        public static readonly int PATTERN_TYPE_SINGLE_TABLE = 1;

        public CreateCodeTemplateModel()
        {
            _templateNSList = new List<GenTemplateNameSpace>();
            _templateCNList = new List<string>();
        }

        public string Name { get; set; }
        public int PatternType { get; set; }
        public int CodeType { get; set; }
        public bool NewVersion { get; set; }
        public string Comment { get; set; }

        private List<GenTemplateNameSpace> _templateNSList;
        private List<string> _templateCNList;
        public List<GenTemplateNameSpace> TemplateNameSpaceList { get { return _templateNSList; } }
        public List<string> TemplateClassNameList { get { return _templateCNList; } }
        public void AddTemplateNameSpace(GenTemplateNameSpace obj)
        {
            _templateNSList.Add(obj);
        }

        public void AddTemplateClassName(String cn)
        {
            _templateCNList.Add(cn);
        }
    }
    public class GenTemplateNameSpace
    {
        public string ns { get; set; }
        public bool gen { get; set; }
    }
}
